﻿using BaseData.CommonLib.Models;

namespace Production.CommonLib.Models
{
    public class StandardBomEditRequestDto
    {
        /// <summary>
        /// BOM编码
        /// </summary>
        public string? Code { get; set; }

        /// <summary>
        /// BOM名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public string? Version { get; set; }

        /// <summary>
        /// 合同号
        /// </summary>
        public string? Contract { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }

        //public int MaterialId { get; set; }

        //public string? MaterialCode { get; set; }

        //public string? MaterialName { get; set; }

        public MaterialInfoResponseDto Material { get; set; } = new();

        public double Quality { get; set; }

        public IList<StandardBomDetailEditRequestDto>? Items { get; set; } =
            new List<StandardBomDetailEditRequestDto>();
    }
}